/*******************************************************************************
 * Level Master 2000
 * Copyright (C) 2010 Christian Herzog
 * For more information see http://code.google.com/p/levelmaster2000/
 *
 * This file is licensed under the terms of the MIT license, see
 * http://www.opensource.org/licenses/mit-license.php for further information.
 ******************************************************************************/

#ifndef CREATE_COMPONENT_COMMAND_H
#define CREATE_COMPONENT_COMMAND_H

#include <QUndoCommand>
#include <QStringList>

class EntityExplorer;
class Entity;
class LevelMaster2000;

class CreateComponentCommand : public QUndoCommand
{
public:
    CreateComponentCommand( EntityExplorer* entityExplorer,
                            QString entityName,
                            QString componentName,
                            QString className,
                            QUndoCommand *parent = 0 );

    void init();
    void undo();
    void redo();

private:
    EntityExplorer *entityExplorer;
    QString entityName;
    QString componentName;
    QString className;
};

#endif
